package com.lq.schoolshop.service.impl;

import com.lq.schoolshop.dao.CategoryTypeMapper;
import com.lq.schoolshop.pojo.CategoryType;
import com.lq.schoolshop.pojo.Expand.CategoryTypeAndGoods;
import com.lq.schoolshop.pojo.Goods;
import com.lq.schoolshop.service.CategoryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author
 * @Date2021/1/23 15:11
 * @Version V1.0
 * 外卖详情页
 **/
@Service
public class CategoryTypeServiceImpl implements CategoryTypeService {

    @Autowired(required = false)
    private CategoryTypeMapper categoryTypeMapper;

    @Override
    public List<CategoryTypeAndGoods> selByAll() {
        return categoryTypeMapper.selByAll();
    }

    @Override
    public List<CategoryType> selcategorytypeAll() {
        return categoryTypeMapper.selcategorytypeAll();
    }

    @Override
    public List<Goods> selgoodsByCategoryId(int categorytype) {
        return categoryTypeMapper.selgoodsByCategoryId(categorytype);
    }


}
